<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="cache-control" content="no-cache"/>
	<meta http-equiv="expires" content="0" />
	<title>机构管理</title>
	<link rel="stylesheet" href="<%=path %>/skin/default/css/view.css" type="text/css" />
	<link rel="stylesheet" href="<%=path %>/skin/default/css/button.css" type="text/css" />
	<link rel="stylesheet" href="<%=path %>/scripts/jqgrid/ui.jqgrid.css" type="text/css" />
	<link rel="stylesheet" href="<%=path %>/scripts/jquery/themes/blitzer/jqueryui.css" type="text/css" />
	<link rel="stylesheet" href="<%=path %>/scripts/dialog/default/ymPrompt.css" type="text/css" />
	
	<script type="text/javascript" src="<%=path %>/scripts/jquery/jquery-1.8.2.js"></script>
	<script type="text/javascript" src="<%=path %>/scripts/jquery/jquery.json-2.2.min.js"></script>
	<script type="text/javascript" src="<%=path %>/scripts/jqgrid/grid.locale-cn.js"></script>
	<script type="text/javascript" src="<%=path %>/scripts/jqgrid/jquery.jqGrid.min.js"></script>
	<script type="text/javascript" src="<%=path %>/scripts/dialog/ymPrompt.js"></script>
	<script type="text/javascript" src="<%=path %>/scripts/main.js"></script>
	<script type="text/javascript" src="<%=path %>/scripts/view.js"></script>
	<script type="text/javascript" src="<%=path %>/scripts/utils.js"></script>
	<script type="text/javascript">
		$(function(){
			var options = {
				viewUrl:"PageList",
				colNames:["机构名称","机构代码","机构电话","机构邮箱","机构地址","状态","操作",""],
				colModels:[
					{name:'orgName',index:'orgName',width:"120px"},
					{name:'orgCode',index:'orgCode',width:"80px"},
					{name:'orgTel',index:'orgTel',width:"80px"},
					{name:'orgMailbox',index:'orgMailbox',width:"80px"},
					{name:'orgAddress',index:'orgAddress'},
					{name:'status',index:'status',width:"35px",align:"center",formatter:function(cellValue){
						switch(cellValue){
							case "Y" : return "启用";
							case "N" : return "<span style=\"color: red;\">禁用</span>";
						}
					}},
					{name:'operator',index:'operator',sortable:false,width:"60px",align:"center"},
					{name:'id',index:'id',hidden:true}
				],
				sortName:"",
				sortOrder:"",
				height:98,
				multiSelect:true,
				multiBoxOnly:true,
				editorUrl:"<%=path %>/org/editor",
				deleteUrl:"Delete",
				returnUrl:"<%=path %>/org/view",
				searchFastForm:"searchFastForm",
				searchFastBtn:"btnSearchFast",
				addBtn:"btnAdd",
				delBtn:"btnDel",
				operateState:true,
				operate:["modify","delete"],
				openState:true,
				winWidth:650,
				winHeight:360,
				winPos:"c",
				winTitle:"当前窗口：机构编辑"
			};
			$("#orgGrid").loadViewList(options);
		});
	</script>
</head>
<body>
	<div class="toolBar">
		<div class="fr">
			<div class="fl" style="margin-right: -5px;">
				<form action="" id="searchFastForm" name="searchFastForm">
					<label>搜 索：</label>
					<input type="text" id="searchName" name="searchName" class="search_input" placeholder="请输入......"/>
				</form>
			</div>
			<div class="fl">
				<input type="button" id="btnSearchFast" name="btnSearchFast" class="btn btn82 btn_search" value="查 询" />
			</div>
		</div>
		<div class="fl">
			<input type="button" id="btnAdd" name="btnAdd" class="btn btn82 btn_add" value="新 增" />
			<input type="button" id="btnDel" name="btnDel" class="btn btn82 btn_del" value="删 除" />
		</div>
	</div>
	<table id="orgGrid" cellpadding="0" cellspacing="0" border="0"></table>
	<div id="gridPager"></div>
</body>
</html>